home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 12 - 1996 / 12.10 Oct 96 / ChallyDebugCTB / Code / DebugTerm.h < prev    next >
Encoding:
Text File  |  1996-04-20  |  1008 b   |  35 lines  |  [TEXT/MMCC]

  1. // DebugTerm.h - Contains public declarations for DebugTerm
  2.  
  3. // Useful Literals
  4. #define kDoInitCTB        true
  5. #define kDontInitCTB    false
  6. #define kDoPrompt         true
  7. #define kDontPrompt     false
  8. #define kAsync            true
  9. #define kSync            false
  10. #define kDoCreate        true
  11. #define kDontCreate        false
  12.  
  13. // OSErr codes - I decided to use 1001 - 19999, 
  14. //        since they appear to be unused by Apple
  15. #define kNoConnToolErr        1001
  16.     // No connection tool was found
  17. #define kNothingChosenErr    1002
  18.     // No connection tool was chosen
  19. #define kCMNewErr            1003
  20.     // CMNew failed to return a handle
  21. #define kAlreadyOpenErr        1004
  22.     // Already curent connection open
  23. #define kToolNotAvailErr    1005
  24.     // Selected tool was not available
  25. #define kNoConnectionErr    1006
  26.     // Attempted to operate w/o a connection
  27. #define kGetConfigErr        1007
  28.     // Attempt to GetConfig failed
  29.  
  30. // Function Prototypes
  31. OSErr OpenDebugTerm(Boolean async, Boolean initCTB, 
  32.     Boolean prompt);
  33. OSErr CloseDebugTerm(void);
  34. OSErr DebugTerm(Str255 outStr);
  35. OSErr debugf(char *fmt, ...);